package com.tarzan.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tarzan.api.model.response.role.SysRoleVo;
import com.tarzan.api.model.response.user.UserRoleResp;
import com.tarzan.system.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liujinshan
 * @since 2020-05-19
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    IPage<UserRoleResp> getPageUserRoleInfoByRoleId(IPage<UserRoleResp> page, @Param("id") Long id);

    List<SysRoleVo> findRoleInfoByUserId(@Param("userId") Long userId);
}
